import followupApi from "@/api/declaration/crm/followupApi"
import httpRequest from "@/config/axios/httpRequest"
import { CrmFollowUpRecordModel } from "@/models/crm/CrmFollowUpRecordModel"


// 跟进记录 API
export const FollowUpRecordApi = {
  // 查询跟进记录分页
  getFollowUpRecordPage: async (params: any) => {
    return await httpRequest.get(followupApi.GetFollowUpRecordPage, { params })
  },

  // 新增跟进记录
  createFollowUpRecord: async (data: CrmFollowUpRecordModel) => {
    return await httpRequest.post(followupApi.CreateFollowUpRecord, data)
  },

  // 删除跟进记录
  deleteFollowUpRecord: async (id: number) => {
    return await httpRequest.delete(followupApi.DeleteFollowUpRecord, { params: { id } })
  }
}
